var arr=["张三","李四","王五"]
var arrNew=arr.map(function(val,index,arro){
    return {name:val,id:index,source:arro};
})
console.log(arrNew);
console.log(arr);